import request from '@/utils/request'

// 获取部署流程信息
export function findCurrUserToDoTasks(data) {
    return request({
        url: 'workflow/findCurrUserToDoTasks',
        method: 'post',
        data
    })
}

//查询请假流程详情
export function findLeaveApplyDetail(id) {
    return request({
        url: 'leaveApply/findLeaveApplyDetail/' + id,
        method: 'get'
    })
}

//提交流程
export function processWorkFlow(data) {
    return request({
        url: 'workflow/processWorkFlow',
        method: 'post',
        data
    })
}

//获取流程信息
export function workFlowInfo(data) {
    return request({
        url: 'workflow/workFlowInfo',
        method: 'post',
        data
    })
}

export function findQuitApplyDetail(id) {
    return request({
        url: 'quitApply/findQuitApplyDetail/' + id,
        method: 'get'
    })
}

export function historyWorkFlowList(data) {
    return request({
        url: 'workflow/historyWorkFlowList',
        method: 'post',
        data
    })
}

export function weijiDetails(id) {
    return request({
        url: '/violativeApply/findViolativeApplyDetail/' + id,
        method: 'get',
    })
}

export function getDocumentApplyDetail(id) {
    return request({
        url: '/documentApply/findDocumentApplyDetail/' + id,
        method: 'get',
    })
}

export function findMeetingApplyDetail(id) {
    return request({
        url: 'meetingApply/findMeetingApplyDetail/' + id,
        method: 'get'
    })
}
//维修单记录
export function repairOrderRecordsDetail(processId) {
    return request({
        url: "/repairApply/findViolativeApplyDetail/" + processId,
        method: 'get',
    })
}

//获取已审批申请单
export function findHistoryApproval(data) {
    return request({
        url: 'workflow/findHistoryApproval',
        method: 'post',
        data
    })
}

//维修单记录
export function usePersonApplyDetail(processId) {
    return request({
        url: "/usePersonApply/detail/" + processId,
        method: 'get',
    })
}

//学生请假代提记录
export function studentLeaveApplyDetail(processId) {
    return request({
        url: "/studentLeave/detail/" + processId,
        method: 'get',
    })
}

//学生请假自提记录
export function studentLeaveSelfApplyDetail(processId) {
    return request({
        url: "/studentLeave/detailSelf/" + processId,
        method: 'get',
    })
}
export function goodsBuyApplyDetail(processId) {
    return request({
        url: "/goodsBuy/detail/"+processId ,
        method: 'get'
    })
}

export function scopePageList(data) {
    return request({
        url: "/scope/teacherPageList" ,
        method: 'post',
        data
    })
}

export function updateScope(data) {
    return request({
        url: "/scope/updateScope" ,
        method: 'post',
        data
    })
}

export function listFeedBack(data) {
    return request({
        url: "/feedback/listFeedBack" ,
        method: 'post',
        data
    })
}



